package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by yls on 2018/11/12.
 */

public class LowPriorityReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle = getResultExtras(false);
        String name = bundle.getString("NAME");
        int age = bundle.getInt("AGE");
        String address = bundle.getString("ADDRESS");
        int number = bundle.getInt("number");
        Log.e("MiddlePriorityReceiver","onReceiver name = " + name + " age = "+ age + " address = "+address + " number = "+number);

    }
}